#ifndef WIDGET_H
#define WIDGET_H

#include "gameplay.h"
#include <QWidget>

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
public slots:
    void message1(){
        QMessageBox::information(this,"说明","您已选择Tom!");
    }
    void message2(){
        QMessageBox::information(this,"说明","您已选择Jerry!");
    }
    void gotoroleinstruction();
    void gotogameplay();



private:
    gamePlay game;

    int ngold=0,nsilver=0;
    QLabel  maininterface, title, t, j;
    QPushButton  instruct, start;
    QPushButton  ctom, cjerry;

    QMessageBox  chotom, chojerry;



};
#endif // WIDGET_H
